//引入api
import request from '@/utils/request'

//审核分页查询
export function selectAuditPage(data) {
    return request({
        url: '/admin/audit/page',
        method: 'post',
        data: data
    })
}



//审核修改
export function updateAudit(data) {
    return request({
        url: '/admin/audit/update',
        method: 'post',
        data: data
    })
}

//审核通过
export function updateSuccess(id) {
    return request({
        url: `/admin/audit/audit/success/${id}`,
        method: 'post',
    })
}


//审核不通过
export function updateError(id) {
    return request({
        url: `/admin/audit/audit/error/${id}`,
        method: 'post',
    })
}

//审核删除
export function deleteAudit(id) {
    return request({
        url: `/admin/audit/delete/${id}`,
        method: 'post',
    })
}

//审核新增
export function insertAudit(data) {
    return request({
        url: '/admin/audit/insert',
        method: 'post',
        data: data
    })
}


//数据统计
export function getBankuaiData(data) {
    return request({
        url: '/admin/audit/get/detail',
        method: 'get',
        data: data
    })
}

//折线图
export function getZhexiantuData(data) {
    return request({
        url: '/admin/audit/api/audit/statistics',
        method: 'post',
        data: data
    })
}



